package com.yuan;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @program: blog-system
 * @description:
 * @author: yuan_boss
 * @create: 2022-12-23 09:01
 **/
public class Yuan {
    public static void main(String[] args) throws JsonProcessingException {
        String[] strs = new String[]{"1","2"};
        ObjectMapper mapper = new ObjectMapper();
        String s = mapper.writeValueAsString(strs);
        System.out.println(s);
    }
}
